-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: No toast on removal of untrusted mark #16972
base: master
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (7)
|
a650a86
to
3d29949
Compare
- extend the store method with a "displayName" param - emit a toast/notification when we remove someone's "untrusted" mark Fixes #16949
3d29949
to
4501e9e
Compare
|
||
const contactDetails = Utils.getContactDetailsAsJson(pubKey, false, false, true) | ||
const displayName = SQUtils.Emoji.parse(ProfileUtils.displayName(contactDetails.localNickname, contactDetails.name, contactDetails.displayName, contactDetails.alias)) | ||
Global.displaySuccessToastMessage(qsTr("Untrusted mark removed for %1").arg(displayName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to have the call start from the Nim side, since it might have failed.
We call the event SIGNAL_REMOVED_TRUST_STATUS
if the action succeeded. You can hook into one of the modules that listens to that event and then call the usual signal to have a ToastMessage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a look yeah, good idea
What does the PR do
Fixes #16949
Affected areas
Profile
Architecture compliance
My PR is consistent with this document: Status Desktop Architecture Guide
Screenshot of functionality (including design for comparison)
Marked as untrusted:
Removed the untrusted mark: